@import '~antd/es/style/themes/default.less';

.container {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background: @layout-body-background;
}

.lang {
  width: 100%;
  height: 40px;
  line-height: 44px;
  text-align: right;
  :global(.ant-dropdown-trigger) {
    margin-right: 24px;
  }
}

.content {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 480px;
  margin: auto;
  margin-top: 36px;
}
.rightbox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.loginbox {
  position: relative;
  width: 90%;
  min-width: 300px;
  max-width: 380px;
  margin-top: 36px;
  margin-bottom: 6px;
  overflow: hidden;
  background-image: url('../../../assets/loginbox.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  &::before {
    position: absolute;
    top: -12px;
    left: 0;
    width: 82px;
    height: 35px;
    background: url('../../../assets/highlightrow.png') no-repeat center;
    background-size: contain;
    animation: highlight 8s linear 0s infinite;
    content: '';
  }
  &::after {
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 82px;
    height: 35px;
    background: url('../../../assets/highlightrow.png') no-repeat center;
    background-size: contain;
    animation: highlight 8s linear 0s infinite reverse;
    content: '';
  }
  .border {
    padding: 36px;
    &::before {
      position: absolute;
      top: 0;
      left: -34px;
      width: 82px;
      height: 35px;
      background: url('../../../assets/highlightcolumn.png') no-repeat center;
      background-size: contain;
      animation: highlightcolumn 8s linear 0s infinite reverse;
      content: '';
    }
    &::after {
      position: absolute;
      top: 0;
      right: -41px;
      width: 82px;
      height: 35px;
      background: url('../../../assets/highlightcolumn.png') no-repeat center;
      background-size: contain;
      animation: highlightcolumn 8s linear 0s infinite;
      content: '';
    }
  }
}

@keyframes highlight {
  0% {
    left: 0;
    opacity: 0;
  }
  20% {
    left: 20%;
    opacity: 1;
  }
  50% {
    left: 50%;
    opacity: 1;
  }
  80% {
    left: 80%;
    opacity: 0;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

@keyframes highlightcolumn {
  0% {
    top: 0;
    opacity: 0;
  }
  20% {
    top: 20%;
    opacity: 1;
  }
  50% {
    top: 50%;
    opacity: 1;
  }
  80% {
    top: 80%;
    opacity: 0;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
.prefixIcon {
  color: #92e4ff;
}
.icon {
  margin-left: 8px;
  color: rgba(0, 0, 0, 0.2);
  font-size: 24px;
  vertical-align: middle;
  cursor: pointer;
  transition: color 0.3s;

  &:hover {
    color: @primary-color;
  }
}
